import http from '../common/axios.js'


//获取轮播图
function get_banner(){
		let url='/user/common/get_banner'
		return http.get(url).then(res=>{
			return res;
		})	
}

//获取房屋信息
function get_house(){
		let url='/user/common/get_house'
		return http.get(url).then(res=>{
			return res;
		})	
}

//获取配置信息
function get_sys(){
		let url='/user/common/get_sys'
		return http.get(url).then(res=>{
			return res;
		})	
}

//获取房屋类型
function get_house_type(){
		let url='/user/common/get_house_type'
		return http.get(url).then(res=>{
			return res;
		})	
}

//id获取房屋类型
function get_house_id(id){
		let url='/user/common/get_house_id?id='+id
		return http.get(url).then(res=>{
			return res;
		})	
}


export default{
	get_banner,
	get_house,
	get_sys,
	get_house_type,
	get_house_id
}